sum=0
while(True):
    A=int(input())
    if A==0:
        break
    else:
        sum+=A
print('Sum is',sum)
print('Average is',sum/2)
